"""
考试卷管理模块 - URL配置
为试卷管理功能提供完整的API路由
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from . import views

# 创建路由器并注册视图集
router = DefaultRouter()
router.register(r'templates', views.ExamPaperTemplateViewSet, basename='exam-paper-template')
router.register(r'papers', views.ExamPaperViewSet, basename='exam-paper')
router.register(r'sections', views.PaperSectionViewSet, basename='paper-section')
router.register(r'questions', views.PaperQuestionViewSet, basename='paper-question')
router.register(r'analysis', views.PaperAnalysisViewSet, basename='paper-analysis')
router.register(r'versions', views.PaperVersionViewSet, basename='paper-version')

app_name = 'exam_paper'

urlpatterns = [
    # 包含路由器生成的URL
    path('', include(router.urls)),
]
